<?php
/* @var $this IssueController */
/* @var $model Issue */

$this->breadcrumbs=array(
    'Project'=>array('project/view', 'id'=>$model->project->id),
	'Issues'=>array('index','pid'=>$model->project->id),
	$model->name,
);

$this->menu=array(
	array('label'=>'List Issue', 'url'=>array('index', 'pid'=>$model->project->id)),
	array('label'=>'Create Issue', 'url'=>array('create', 'pid'=>$model->project->id)),
	array('label'=>'Update Issue', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Issue', 'url'=>'#', 
	   'linkOptions'=>array(
	       'submit'=>array('delete', 'id'=>$model->id, 'pid'=>$model->project->id),
	       'confirm'=>'Are you sure you want to delete this item?'
       )),
	array('label'=>'Manage Issue', 'url'=>array('admin', 'pid'=>$model->project->id)),
);
?>

<h1>View Issue #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'name',
		'description',
		array('name'=>'type_id', 'value'=>CHtml::encode($model->typeText)),
		array('name'=>'status_id', 'value'=>CHtml::encode($model->statusText)),
		array('name'=>'owner_id', 'value'=>isset($model->owner)?CHtml::encode($model->owner->username):'unknown'),
		array('name'=>'requester_id', 'value'=>isset($model->requester)?CHtml::encode($model->requester->username):'unknown'),
		/*'create_time',
        'create_user_id',
        'update_time',
        'update_user_id',*/
	),
)); ?>
